package com.cn.ycy.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class User implements Serializable {

  private static final long serialVersionUID = 1L;

  private Integer userId;

  private String username;

  private String sex;

  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date addtime;

  private String token;

  private List<Menus> menus;

  private List<Tenant> tenants;

  private String[] roles;

}
